Skip to content

Conversation

@yaythomas
Copy link
Member

Description of changes:

Update all wait_for_callback example submitter functions to accept the new WaitForCallbackContext parameter. The SDK changed the submitter signature from submitter(callback_id: str) to submitter(callback_id: str, context: WaitForCallbackContext).

Changes:

  • Add WaitForCallbackContext import where needed
  • Update all submitter function signatures to include context param
  • Update lambda submitters to accept both callback_id and context
  • Use underscore prefix for unused context parameters

Affected examples:

  • wait_for_callback.py
  • wait_for_callback_anonymous.py
  • wait_for_callback_child.py
  • wait_for_callback_heartbeat.py
  • wait_for_callback_mixed_ops.py
  • wait_for_callback_multiple_invocations.py
  • wait_for_callback_nested.py
  • wait_for_callback_serdes.py
  • wait_for_callback_submitter_failure.py
  • wait_for_callback_submitter_failure_catchable.py
  • wait_for_callback_timeout.py

Dependencies

If this PR requires testing against a specific branch of the Python Language SDK (e.g., for unreleased changes), uncomment and specify the branch below. Otherwise, leave commented to use the main branch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Update all wait_for_callback example submitter functions to accept
the new WaitForCallbackContext parameter. The SDK changed the
submitter signature from `submitter(callback_id: str)` to
`submitter(callback_id: str, context: WaitForCallbackContext)`.

Changes:
- Add WaitForCallbackContext import where needed
- Update all submitter function signatures to include context param
- Update lambda submitters to accept both callback_id and context
- Use underscore prefix for unused context parameters

Affected examples:
- wait_for_callback.py
- wait_for_callback_anonymous.py
- wait_for_callback_child.py
- wait_for_callback_heartbeat.py
- wait_for_callback_mixed_ops.py
- wait_for_callback_multiple_invocations.py
- wait_for_callback_nested.py
- wait_for_callback_serdes.py
- wait_for_callback_submitter_failure.py
- wait_for_callback_submitter_failure_catchable.py
- wait_for_callback_timeout.py
@bchampp
Copy link
Member

bchampp commented Nov 28, 2025

🤖 Emulator PR Created

A draft PR has been created with locked dependencies:

➡️ https://github.com/aws/aws-durable-execution-emulator/pull/38

The emulator will build binaries using the exact testing SDK commit locked in uv.lock.

@yaythomas yaythomas merged commit fcb11bc into main Nov 28, 2025
50 checks passed
@yaythomas yaythomas deleted the wait-for-callback-context branch November 28, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants